<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TSlider类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_slider.html">TSlider</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_slider-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TSlider类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TSlider 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_slider.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aec7fdf3b20b1de1ce4bd389a8cc511b4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#aec7fdf3b20b1de1ce4bd389a8cc511b4">TSlider</a> (long nativeObj)</td></tr>
<tr class="separator:aec7fdf3b20b1de1ce4bd389a8cc511b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46bc4181a646bd302d319d49ddaa135c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a46bc4181a646bd302d319d49ddaa135c">setValue</a> (double value)</td></tr>
<tr class="separator:a46bc4181a646bd302d319d49ddaa135c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac355dd529c0321f08db96d00a1ea7fe5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#ac355dd529c0321f08db96d00a1ea7fe5">setMin</a> (double min)</td></tr>
<tr class="separator:ac355dd529c0321f08db96d00a1ea7fe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad44dba3d44a887202ff929c5fb6182e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#ad44dba3d44a887202ff929c5fb6182e6">setMax</a> (double max)</td></tr>
<tr class="separator:ad44dba3d44a887202ff929c5fb6182e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cd2789d6aa9b53bc336423af4fb40b3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a9cd2789d6aa9b53bc336423af4fb40b3">setLineCap</a> (String line_cap)</td></tr>
<tr class="separator:a9cd2789d6aa9b53bc336423af4fb40b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b785ea36c7755f8faecbd39f3254308"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a5b785ea36c7755f8faecbd39f3254308">setStep</a> (double step)</td></tr>
<tr class="separator:a5b785ea36c7755f8faecbd39f3254308"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacca015aafc01f00cac5b3f12f132770"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#aacca015aafc01f00cac5b3f12f132770">setBarSize</a> (int bar_size)</td></tr>
<tr class="separator:aacca015aafc01f00cac5b3f12f132770"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a135e7c7fdadd9a709eab9b07ace21560"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a135e7c7fdadd9a709eab9b07ace21560">setVertical</a> (boolean vertical)</td></tr>
<tr class="separator:a135e7c7fdadd9a709eab9b07ace21560"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac24b1d32761ecca408a8b9c291faf005"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#ac24b1d32761ecca408a8b9c291faf005">getMin</a> ()</td></tr>
<tr class="separator:ac24b1d32761ecca408a8b9c291faf005"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0181763a328da621a91f91d36cd8a28"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#ab0181763a328da621a91f91d36cd8a28">getMax</a> ()</td></tr>
<tr class="separator:ab0181763a328da621a91f91d36cd8a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a459f6e155bf4a81125527d779cff6b72"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a459f6e155bf4a81125527d779cff6b72">getStep</a> ()</td></tr>
<tr class="separator:a459f6e155bf4a81125527d779cff6b72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe5c8d7cf05f92db41e87678b463ace2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#afe5c8d7cf05f92db41e87678b463ace2">getBarSize</a> ()</td></tr>
<tr class="separator:afe5c8d7cf05f92db41e87678b463ace2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a721836a235a7da361dcba69943d38afa"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a721836a235a7da361dcba69943d38afa">getDraggerSize</a> ()</td></tr>
<tr class="separator:a721836a235a7da361dcba69943d38afa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bb5aa07625b9b5d85c14942b699622f"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a0bb5aa07625b9b5d85c14942b699622f">getLineCap</a> ()</td></tr>
<tr class="separator:a0bb5aa07625b9b5d85c14942b699622f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c511574b3e22a6801ae96f8e28de7e9"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a7c511574b3e22a6801ae96f8e28de7e9">getVertical</a> ()</td></tr>
<tr class="separator:a7c511574b3e22a6801ae96f8e28de7e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6e5cb2d71107c56c34a39df07b4b94f"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#ae6e5cb2d71107c56c34a39df07b4b94f">getDraggerAdaptToIcon</a> ()</td></tr>
<tr class="separator:ae6e5cb2d71107c56c34a39df07b4b94f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b2f5863f928b8f732f5e283bebaa4e1"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a8b2f5863f928b8f732f5e283bebaa4e1">getSlideWithBar</a> ()</td></tr>
<tr class="separator:a8b2f5863f928b8f732f5e283bebaa4e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a36dde8fbf1803d177314a3a6817343f8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_slider.html">TSlider</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a36dde8fbf1803d177314a3a6817343f8">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a36dde8fbf1803d177314a3a6817343f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a211232a1aa40ce37644ccd7a40cc6bfd"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a211232a1aa40ce37644ccd7a40cc6bfd">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a211232a1aa40ce37644ccd7a40cc6bfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a214bf0951a94038777741a43aef15db5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_slider.html">TSlider</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slider.html#a214bf0951a94038777741a43aef15db5">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a214bf0951a94038777741a43aef15db5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滑块控件。</p>
<p>slider_t是widget\_t的子类控件，widget_t的函数均适用于slider_t控件。</p>
<p>在xml中使用"slider"标签创建滑块控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">slider</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;10&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">slider</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;50&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;20&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">slider</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;90&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">min</span>=<span class="stringliteral">&quot;5&quot;</span> <span class="keyword">max</span>=<span class="stringliteral">&quot;50&quot;</span> <span class="keyword">step</span>=<span class="stringliteral">&quot;5&quot;</span>/&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/design/default/ui/basic.xml">basic</a></p>
<p>在c代码中使用函数slider_create创建滑块控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/slider.c">slider demo</a></p>
<p>可用通过style来设置控件的显示风格，如图片和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">bg_image</span>=<span class="stringliteral">&quot;slider_bg&quot;</span> <span class="keyword">fg_image</span>=<span class="stringliteral">&quot;slider_fg&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">pressed</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag_p&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">over</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag_o&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/design/default/styles/default.xml#L179">theme default</a> </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="aec7fdf3b20b1de1ce4bd389a8cc511b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec7fdf3b20b1de1ce4bd389a8cc511b4">&#9670;&nbsp;</a></span>TSlider()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TSlider.TSlider </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a36dde8fbf1803d177314a3a6817343f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36dde8fbf1803d177314a3a6817343f8">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_slider.html">TSlider</a> awtk.TSlider.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a214bf0951a94038777741a43aef15db5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a214bf0951a94038777741a43aef15db5">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_slider.html">TSlider</a> awtk.TSlider.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为slider对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>slider对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>slider对象。 </dd></dl>

</div>
</div>
<a id="a211232a1aa40ce37644ccd7a40cc6bfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a211232a1aa40ce37644ccd7a40cc6bfd">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TSlider.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slider对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="afe5c8d7cf05f92db41e87678b463ace2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe5c8d7cf05f92db41e87678b463ace2">&#9670;&nbsp;</a></span>getBarSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSlider.getBarSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>轴的宽度或高度（单位：像素），为0表示为控件的宽度或高度的一半，缺省为0。 </p>

</div>
</div>
<a id="ae6e5cb2d71107c56c34a39df07b4b94f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6e5cb2d71107c56c34a39df07b4b94f">&#9670;&nbsp;</a></span>getDraggerAdaptToIcon()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TSlider.getDraggerAdaptToIcon </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滑块的宽度或高度是否与icon适应，缺省为true。 </p>

</div>
</div>
<a id="a721836a235a7da361dcba69943d38afa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a721836a235a7da361dcba69943d38afa">&#9670;&nbsp;</a></span>getDraggerSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSlider.getDraggerSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滑块的宽度或高度（单位：像素），缺省为 bar_size * 1.5。 </p>

</div>
</div>
<a id="a0bb5aa07625b9b5d85c14942b699622f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bb5aa07625b9b5d85c14942b699622f">&#9670;&nbsp;</a></span>getLineCap()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TSlider.getLineCap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>前景色的线帽形状。（取值：butt|round，默认为跟随风格的圆角设置, 但是在没有设置圆角的时候无法使用 "round" 来设置圆角） </p>

</div>
</div>
<a id="ab0181763a328da621a91f91d36cd8a28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0181763a328da621a91f91d36cd8a28">&#9670;&nbsp;</a></span>getMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TSlider.getMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大值。 </p>

</div>
</div>
<a id="ac24b1d32761ecca408a8b9c291faf005"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac24b1d32761ecca408a8b9c291faf005">&#9670;&nbsp;</a></span>getMin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TSlider.getMin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最小值。 </p>

</div>
</div>
<a id="a8b2f5863f928b8f732f5e283bebaa4e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b2f5863f928b8f732f5e283bebaa4e1">&#9670;&nbsp;</a></span>getSlideWithBar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TSlider.getSlideWithBar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否允许在轴上滑动来改变滑块位置，缺省为FALSE。 </p>

</div>
</div>
<a id="a459f6e155bf4a81125527d779cff6b72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a459f6e155bf4a81125527d779cff6b72">&#9670;&nbsp;</a></span>getStep()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TSlider.getStep </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>拖动的最小单位。 </p>

</div>
</div>
<a id="a7c511574b3e22a6801ae96f8e28de7e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c511574b3e22a6801ae96f8e28de7e9">&#9670;&nbsp;</a></span>getVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TSlider.getVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滑块的是否为垂直方向。 </p>

</div>
</div>
<a id="aacca015aafc01f00cac5b3f12f132770"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacca015aafc01f00cac5b3f12f132770">&#9670;&nbsp;</a></span>setBarSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlider.setBarSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bar_size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置bar的宽度或高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bar_size</td><td>bar的宽度或高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9cd2789d6aa9b53bc336423af4fb40b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9cd2789d6aa9b53bc336423af4fb40b3">&#9670;&nbsp;</a></span>setLineCap()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlider.setLineCap </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>line_cap</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置前景色的线帽形状。（默认为跟随风格的圆角设置，但是在没有设置圆角的时候无法使用 "round" 来设置圆角）</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">line_cap</td><td>前景色的线帽形状，取值为：butt|round</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad44dba3d44a887202ff929c5fb6182e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad44dba3d44a887202ff929c5fb6182e6">&#9670;&nbsp;</a></span>setMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlider.setMax </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的最大值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>最大值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac355dd529c0321f08db96d00a1ea7fe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac355dd529c0321f08db96d00a1ea7fe5">&#9670;&nbsp;</a></span>setMin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlider.setMin </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的最小值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>最小值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5b785ea36c7755f8faecbd39f3254308"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b785ea36c7755f8faecbd39f3254308">&#9670;&nbsp;</a></span>setStep()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlider.setStep </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>step</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的拖动的最小单位。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">step</td><td>拖动的最小单位。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a46bc4181a646bd302d319d49ddaa135c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46bc4181a646bd302d319d49ddaa135c">&#9670;&nbsp;</a></span>setValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlider.setValue </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a135e7c7fdadd9a709eab9b07ace21560"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a135e7c7fdadd9a709eab9b07ace21560">&#9670;&nbsp;</a></span>setVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlider.setVertical </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>vertical</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置滑块的方向。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertical</td><td>是否为垂直方向。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TSlider.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
